package com.guli.sms.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.File;
import java.io.Serializable;
import java.util.Date;

import com.guli.common.valid.SaveGroup;
import lombok.Data;

import javax.validation.constraints.Null;

/**
 * 秒杀活动
 * 
 * @author LuoJunHua
 * @email 1007052116@qq.com
 * @date 2020-11-29 10:59:49
 */
@Data
@TableName("sms_seckill_promotion")
public class SeckillPromotionEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 * id
	 */
	@TableId
	private Long id;

	/**
	 * 活动标题
	 */
	private String title;

	/**
	 * 开始日期
	 */
	private Date startTime;

	/**
	 * 结束日期
	 */
	private Date endTime;

	/**
	 * 上下线状态
	 */
	private Integer status;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Null(groups = SaveGroup.class,message = "创建日期由系统自动插入")
	private Date createTime;

	/**
	 * 创建人
	 */
	private Long userId;

}
